<?php

use Drupal\shusy_store_order_pay\Entity\ShusyStoreOrderPay;

function shusy_store_order_pay_shusy_store_order_pay_add_page() {
  $e = new ShusyStoreOrderPay();
  module_load_include('inc', 'shusy_store_order_pay', 'shusy_store_order_pay.forms');
  return drupal_get_form('shusy_store_order_pay_shusy_store_order_pay_entity_form', $e, 'add');
}

function shusy_store_order_pay_shusy_store_order_pay_view_page(ShusyStoreOrderPay $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_store_order_pay_shusy_store_order_pay_edit_page(ShusyStoreOrderPay $e) {
  module_load_include('inc', 'shusy_store_order_pay', 'shusy_store_order_pay.forms');
  return drupal_get_form('shusy_store_order_pay_shusy_store_order_pay_entity_form', $e, 'edit');
}

function shusy_store_order_pay_shusy_store_order_pay_delete_page(ShusyStoreOrderPay $e) {
  module_load_include('inc', 'shusy_store_order_pay', 'shusy_store_order_pay.forms');
  return drupal_get_form('shusy_store_order_pay_shusy_store_order_pay_delete_form', $e);
}

